<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
img{
    width : 400px;
    height : 400px;
    
}
</style>
</head>
<body>
<script type="text/javascript" src="./data.js"></script>
<script>
var re = /http:\/\/[^:]+\.(jpg|png|jpeg)/gi;
var imgUrls = text.match(re);
for(var imgUrl of imgUrls){
    var img = document.createElement("img");
    img.src = imgUrl;
    document.body.appendChild(img)
}
</script>
</body>
</html>